<?php

	// TITLE: account
	// FILE: scafolding/listAccount.php
	// AUTHOR: AUTOGEN
	// CREATED: 2015/02/18 11:14:27
	// DESCRIPTION: 
	// REQUIREMENTS: 

?>
<h2>account</h2>
<hr>
<form method="GET" action="index.php">
	<input type="hidden" id="dir" value="<?php echo $dir; ?>">
	<input type="hidden" id="sub" value="<?php echo $sub; ?>">
	<input type="hidden" id="act" value="view">
</form>
<table>
	<thead>
		<tr>
			<th>id</th>
			<th>username</th>
			<th>password</th>
			<th>date</th>
			<th>status</th>
			<th>is_admin</th>
			<th>is_office</th>
			<th>person_id</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($fields as $field)  { ?>
		<tr onclick="goto('<?php echo $account->getId(); ?>');">
			<td><?php echo $account->getId(); ?></td>
			<td><?php echo $account->getUsername(); ?></td>
			<td><?php echo $account->getPassword(); ?></td>
			<td><?php echo $account->getDate(); ?></td>
			<td><?php echo $account->getStatus(); ?></td>
			<td><?php echo $account->getIsAdmin(); ?></td>
			<td><?php echo $account->getIsOffice(); ?></td>
			<td><?php echo $account->getPersonId(); ?></td>
		</tr>
	<?php } ?>
	</tbody>
</table>

?>
